<?php

use Faker\Generator as Faker;

$factory->define(App\Models\User::class, function (Faker $faker) {
    return [
        'username'  =>  $faker->userName,
        'truename'  =>  $faker->name(),
        'password'  =>  bcrypt('admin888'),
        'email'     =>  $faker->email,
        'phone'     =>  $faker->phoneNumber,
        'sex'       => ['先生','女士'][rand(0,1)]
    ];
});
